package com.controller.api;

import com.biz.HotelCooperationBiz;
import com.controller.backend.BaseController;
import com.core.Result;
import com.core.ResultGenerator;
import com.entity.model.HotelCooperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
* Created by jc on 2019/11/16.
*/
@RestController("apiHotelCooperationController")
@RequestMapping("/api/hotelCooperation")
public class HotelCooperationController extends BaseController<HotelCooperation>{
    @Autowired
    private HotelCooperationBiz hotelCooperationBiz;

    //申请合作
    @RequestMapping(value = "/hotelCooperationAuth")
    public Result hotelCooperationAuth(HotelCooperation hotelCooperation) {
        hotelCooperationBiz.save(hotelCooperation);
        return ResultGenerator.genSuccessResult();
    }
}
